package com.web.exiaodao.remote.vo;

import com.web.exiaodao.business.entity.SysArea;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * @author eason.zt
 * @ClassName: InstitutionVo
 * @Description:机构表 Vo
 * @date 2016-11-04 10:01:30
 */
@ApiModel(value = "机构表Vo对象")
public class InstitutionVo {

    @ApiModelProperty(value = "主键，自动增长")
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "机构名称,机构名称")
    private String institution_Name;
    @ApiModelProperty(value = "机构首页展示图,机构首页展示图")
    private String institution_pic;
    @ApiModelProperty(value = "宣传语Site,宣传语Site")
    private String institution_Site;
    @ApiModelProperty(value = "机构电话号码,机构电话号码")
    private String institution_TelPhone;
    @ApiModelProperty(value = "参观的价格;参观的价格")
    private Double institution_Price;
    @ApiModelProperty(value = "机构介绍 图文形式混排,机构介绍 图文形式混排")
    private String institution_Informations;
    @ApiModelProperty(value = "视频链接,视频链接")
    private String institution_VideoUrl;
    //添加一个属性
    @ApiModelProperty(value = "视频链接(是否是远程视频地址;YES:远程；NO:自己服务器地址)")
    private Boolean institutionVideoUrlIsRemote;
    @ApiModelProperty(value = "机构区域 (国内0,国外1);机构区域 (国内0,国外1)")
    private Long institution_Area;
    /**
     * @see SysArea
     */
    @ApiModelProperty(value="城市id, 城市区域id，关联城市区域定义表(SysArea)表")
    private Long sysAreaId;
    private SysAreaVo sysAreaVo;

    @ApiModelProperty(value = "机构类型(享老居所0；旅游居所1；养护院2);机构类型(享老居所0；旅游居所1；养护院2)")
    private Long institution_type;

    @ApiModelProperty(value = "机构地址;机构地址")
    private String institutionAddress;

    /**
     * {@link InsHotelRoomsTableVo }
     * 该机构最便宜的一个房子的价格
     */
    @ApiModelProperty(value = "挑选的一间公寓的价格,挑选的一间公寓的价格")
    private Double hotelRooms_Price;
    private Boolean isSellByCard;//是否安卡销售
    @ApiModelProperty(value = "房型价格单位,房型价格-单位")
    private String hotelRooms_Price_unit;
    @ApiModelProperty(value = "收藏数量,收藏数量")
    private String favorite_num;

    @ApiModelProperty(value = "酒店房间<>,酒店房间")
    private List<InsHotelRoomsTableVo> rooms = new ArrayList<>();
    @ApiModelProperty(value = "机构前n条评论<>,机构前n条评论")
    private List<CommentVo> institution_commons = new ArrayList<>();
    @ApiModelProperty(value = "机构banner;机构banner")
    private List<BannerVo> Institution_bannerList = new ArrayList<>();

    /**
     * 机构整体评价
     */
    @ApiModelProperty(value = "卫生等级（5分）预留,卫生等级")
    private Double commentHealthClass;
    @ApiModelProperty(value = "服务等级（5分）预留,服务等级")
    private Double commentServiceClass;
    @ApiModelProperty(value = "环境等级（5分）预留,环境等级")
    private Double commentEnvironmentClass;
    @ApiModelProperty(value = "设施等级（5分）预留,设施等级")
    private Double commentFacilityClass;

    /**
     * 收藏
     */
    @ApiModelProperty(value = "是否收藏,只有详情接口返回")
    private Boolean isFavorite = null;
    @ApiModelProperty(value = "收藏的id,只有详情接口返回")
    private Long favoriteId;

    @ApiModelProperty(value = "点击量,点击量")
    private Long clickCont;
    @ApiModelProperty(value="排序值,排序值")
    private Long sort;


    public InstitutionVo(Long id, String institution_Name, String institution_Site, String institution_TelPhone, Double institution_Price, String institution_Informations, String institution_VideoUrl, Long institution_Area) {
        this.id = id;
        this.institution_Name = institution_Name;
        this.institution_Site = institution_Site;
        this.institution_TelPhone = institution_TelPhone;
        this.institution_Price = institution_Price;
        this.institution_Informations = institution_Informations;
        this.institution_VideoUrl = institution_VideoUrl;
        this.institution_Area = institution_Area;
    }

    public InstitutionVo() {
        super();
    }

    public List<CommentVo> getInstitution_commons() {
        return institution_commons;
    }

    public void setInstitution_commons(List<CommentVo> institution_commons) {
        this.institution_commons = institution_commons;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setInstitution_Name(String institution_Name) {
        this.institution_Name = institution_Name;
    }

    public String getInstitution_Name() {
        return institution_Name;
    }

    public void setInstitution_Site(String institution_Site) {
        this.institution_Site = institution_Site;
    }

    public String getInstitution_Site() {
        return institution_Site;
    }

    public void setInstitution_TelPhone(String institution_TelPhone) {
        this.institution_TelPhone = institution_TelPhone;
    }

    public String getInstitution_TelPhone() {
        return institution_TelPhone;
    }

    public void setInstitution_Price(Double institution_Price) {
        this.institution_Price = institution_Price;
    }

    public Double getInstitution_Price() {
        return institution_Price;
    }

    public void setInstitution_Informations(String institution_Informations) {
        this.institution_Informations = institution_Informations;
    }

    public String getInstitution_Informations() {
        return institution_Informations;
    }

    public void setInstitution_VideoUrl(String institution_VideoUrl) {
        this.institution_VideoUrl = institution_VideoUrl;
    }

    public String getInstitution_VideoUrl() {
        return institution_VideoUrl;
    }

    public void setInstitution_Area(Long institution_Area) {
        this.institution_Area = institution_Area;
    }

    public Long getInstitution_Area() {
        return institution_Area;
    }

    public String getInstitution_pic() {
        return institution_pic;
    }

    public void setInstitution_pic(String institution_pic) {
        this.institution_pic = institution_pic;
    }


    public List<InsHotelRoomsTableVo> getRooms() {
        return rooms;
    }

    public void setRooms(List<InsHotelRoomsTableVo> rooms) {
        this.rooms = rooms;
    }

    public Long getInstitution_type() {
        return institution_type;
    }

    public void setInstitution_type(Long institution_type) {
        this.institution_type = institution_type;
    }

    public Double getHotelRooms_Price() {
        return hotelRooms_Price;
    }

    public void setHotelRooms_Price(Double hotelRooms_Price) {
        this.hotelRooms_Price = hotelRooms_Price;
    }

    public String getHotelRooms_Price_unit() {
        return hotelRooms_Price_unit;
    }

    public void setHotelRooms_Price_unit(String hotelRooms_Price_unit) {
        this.hotelRooms_Price_unit = hotelRooms_Price_unit;
    }

    public String getFavorite_num() {
        return favorite_num;
    }

    public void setFavorite_num(String favorite_num) {
        this.favorite_num = favorite_num;
    }

    public List<BannerVo> getInstitution_bannerList() {
        return Institution_bannerList;
    }

    public void setInstitution_bannerList(List<BannerVo> institution_bannerList) {
        Institution_bannerList = institution_bannerList;
    }

    public String getInstitutionAddress() {
        return institutionAddress;
    }

    public void setInstitutionAddress(String institutionAddress) {
        this.institutionAddress = institutionAddress;
    }

    public Double getCommentHealthClass() {
        return commentHealthClass;
    }

    public void setCommentHealthClass(Double commentHealthClass) {
        this.commentHealthClass = commentHealthClass;
    }

    public Double getCommentServiceClass() {
        return commentServiceClass;
    }

    public void setCommentServiceClass(Double commentServiceClass) {
        this.commentServiceClass = commentServiceClass;
    }

    public Double getCommentEnvironmentClass() {
        return commentEnvironmentClass;
    }

    public void setCommentEnvironmentClass(Double commentEnvironmentClass) {
        this.commentEnvironmentClass = commentEnvironmentClass;
    }

    public Double getCommentFacilityClass() {
        return commentFacilityClass;
    }

    public void setCommentFacilityClass(Double commentFacilityClass) {
        this.commentFacilityClass = commentFacilityClass;
    }

    public Boolean getFavorite() {
        return isFavorite;
    }

    public Boolean getIsFavorite() {
        return isFavorite;
    }

    public void setFavorite(Boolean favorite) {
        isFavorite = favorite;
    }

    public Long getFavoriteId() {
        return favoriteId;
    }

    public void setFavoriteId(Long favoriteId) {
        this.favoriteId = favoriteId;
    }

    public Boolean getInstitutionVideoUrlIsRemote() {
        institutionVideoUrlIsRemote = institution_VideoUrl == null ? null : (institution_VideoUrl.startsWith("/upload/") ? false : true);
        return institutionVideoUrlIsRemote;
    }

    public void setInstitutionVideoUrlIsRemote(Boolean institutionVideoUrlIsRemote) {
        this.institutionVideoUrlIsRemote = institutionVideoUrlIsRemote;
    }

    public Long getSysAreaId() {
        return sysAreaId;
    }

    public void setSysAreaId(Long sysAreaId) {
        this.sysAreaId = sysAreaId;
    }

    public SysAreaVo getSysAreaVo() {
        return sysAreaVo;
    }

    public void setSysAreaVo(SysAreaVo sysAreaVo) {
        this.sysAreaVo = sysAreaVo;
    }

    public Long getClickCont() {
        return clickCont;
    }

    public void setClickCont(Long clickCont) {
        this.clickCont = clickCont;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Boolean getSellByCard() {
        return isSellByCard;
    }

    public void setSellByCard(Boolean sellByCard) {
        isSellByCard = sellByCard;
    }
}

